#define _CRT_SECURE_NO_WARNINGS 1
#include "list.h"

int main()
{
	my_list::list<int> l1(3, 6);
	my_list::list<int> l2(l1.begin(),l1.end());
	for (auto x : l1)
	{
		cout << x << " ";
	}
	cout << endl;

	for (auto x : l2)
	{
		cout << x << " ";
	}
	cout << endl;

	cout << l1.size() << endl;

	l1.push_back(0);
	for (auto x : l1)
	{
		cout << x << " ";
	}
	cout << endl;

	l1.erase(l1.begin());
	for (auto x : l1)
	{
		cout << x << " ";
	}
	cout << endl;

	return 0;
}

//
//int main()
//{
//	my_list::list<int> l1(3, 6);
//	my_list::list<int> l2(l1);
//	for (auto x : l2)
//	{
//		cout << x << " ";
//	}
//	cout << endl;
//	return 0;
//}